package com.graduate.cec.mapper;

import com.graduate.cec.pojo.entity.User;
import com.graduate.cec.pojo.entity.UserExample;
import java.util.List;

import com.graduate.cec.pojo.vo.UserLoginVO;
import com.graduate.cec.pojo.vo.UserSimpleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExampleWithBLOBs(UserExample example);

    List<User> selectByExample(UserExample example);

    Long selectIdByPhone(String phone);

    int selectPhone(String phone);

    UserLoginVO selectLoginInfoByPhone(String phone);

    UserSimpleVO selectSimplePersonal(String phone);

    User selectNameById(Long id);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExampleWithBLOBs(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);
}